<template>
    <div class="home">
        <h1>child home page</h1>
        <button @click="changeValue">改变主应用传来的值</button>
    </div>
</template>

<script>
import action from '@/qiankun/action'
export default {
    name: 'Home',
    mounted() {
        action.onGlobalStateChange((state) => {
            console.log(state)
        }, true);
    },
    methods:{
        changeValue(){
            action.setGlobalState({abc:789})
        }
    }
}
</script>
